Browser Chomper 0.8.1: Gets ride of annoying browser files.
Copyright (C) 1999-2000 Gordon Worley.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
For a copy of the GNU General Public License, visit <http://www.gnu.org/> or write to the Free Software Foundation, Inc., 59 Temple Place--Suite 330, Boston, MA 02111-1307, USA.
To contact me, please visit my Web site at <http://www.rbisland.cx/> or e-mail me at <redbird@rbisland.cx>.
History:
0.8.1 - Commented out section that starts iCab deletion since iCab takes care of doing this all internally. Uncomment only if you want to use Browser Chomper for some reason instead (like forgetting the sites you have told iCab to refuse to take cookies from).
0.8 - Added partial support for IE; I can't find the cookie file(s). Also, change variable names to have underscores, reflecing my new coding style.
0.7 - Added support for multiuser versions of Netscape. Before, only upgraded 3.x users' main users were affected. As a performance tweek, you may wish to comment out the new multiuser code or the older single user code, depending on which one is actually needed (i.e. if it used to work fine, and you don't have multiple users, comment out the new code).
0.6 - Added support for iCab and more code changes to accomidate multiple browsers. Support for more browsers soon, I hope.
0.4 - Code made more robust. A couple other small changes, which don't really matter because no one but me has seen this code until now.
0.3.2 - Uses 'system folder' constant, so that it will always find the blessed folder, regardless of its name.
0.3.1 - Name changed from 'Cookie Mage' to 'Browser Chomper'.
0.3 - Gets ride of more than just cookies. Added support for Global History and Chache folder deletion. Maybe I should change the name???
0.2 - Checks to see if a browser exist that will work with this script before trying anything.
0.1.5 - Messed it up with some experimental code.
0.1 - Added error handling for deletion.
0.0 - Pressed record button. Initial release. :-)
*)
on run {}
set failed to true
tell application "Finder"
activate --Put this script in the background so you can keep working B-)
if startup disk's system folder's folder "Preferences"'s folder "Netscape ƒ" exists then --This sees if you have a version of Netscape installed that this script works with
my do_Netscape()
set failed to false
end if
if startup disk's system folder's folder "Preferences"'s folder "Netscape Users" exists then
my do_MultiNetscape()
set failed to false
end if
--this next part is commented out because iCab can do this internally. Uncomment only if you don't want iCab to take care of this task and want Browser Chomper to.
(*if startup disk's system folder's folder "Preferences"'s folder "iCab Preferences" exists then --same deal but with iCab
my do_iCab()
set failed to false
end if*)
if startup disk's system folder's folder "Preferences"'s folder "Explorer" exists then --finds if IE is there
my do_IE()
set failed to false
end if
if failed then
beep
display dialog "Oops, it looks like you don't have a compatible version of Netscape, IE, or iCab installed." with icon 0 buttons {"OK"} default button 1